package cn.edu.scau.cmi.wuyihan.exercise8.Example8_8;

public class Machine {
     public void checkBag(Goods goods) throws DangerException{
    	 if(goods.isDanger) {
    		 DangerException danger=new DangerException();
    		 throw  danger;
    	 }
     }
}
